package com.two.shopping.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

@AllArgsConstructor
@NoArgsConstructor
@Data
public class Commodity {
    private int id;//
    private String name;//商品名称
    private int commodityTypeId;//所属类型
    private String image;//产品图片
    private float price;//单价
    private int quantity;//数量
    private int state;//0该商品不售卖，1该商品售卖中
    private LocalDateTime produceDate;//生产日期
    private LocalDateTime expirationDate;//保质期
    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//修改时间
}
